<template>
  <div class="chat-history">
    <div class="history_top-container z-ma-b-10 z-pd-l-10 z-pd-r-10">
      <el-button type="success" class="top_btn"> 
        <i-ep-Plus class="z-ma-r-5" />
        新建对话 </el-button>
    </div>
    <div class="history_search-container z-ma-b-10 z-pd-l-10 z-pd-r-10">
      <el-input
        v-model="searchValue"
        style="width: 100%"
        placeholder="搜索会话"
        clearable
      />
    </div>
    <div class="history_list-container">
      <div class="z-pd-l-10 z-pd-t-5 z-pd-b-5 list_item" v-for="n in 50" :key="n">
        <span class="z-text-line-2">{{ n }}xxxxxx 功能xxxxxx 功能xxxxxx 功能xxxxxx 功能xxxxxx 功能功能xxxxxx 功能xxxxxx 功能</span>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts" name="ChatHistory">
  const searchValue = ref('')
</script>

<style lang="scss" scoped>
  .chat-history {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 20px 0;
    background-color: var(--el-bg-color-page);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    .top_btn {
      width: 100%;
    }
    .history_top-container {
      flex-shrink: 0;
    }
    .history_search-container {
      flex-shrink: 0;
    }
    .history_list-container {
      flex: 1 1 auto;
      overflow: auto;
      height: calc(100vh - 185px);
      box-sizing: border-box;
      .list_item {
        border-bottom: 1px solid var(--el-border-color);
      }
      
    }
  }
</style>
